package org.ace.logic.raid.dto;

import org.ace.basicdata.model.MonsterBasicData;
import org.ace.tool.impl.PropertyUtil;

public class MonsterModelDB {
   public int id;
   public int gdCode;
   public int atk;
   public int def;
   public int hp;
   public int hpMax;
   public int mp;
   public int mpMax;
   public int exp;
   public float x;
   public float y;
   public float z;
   public float init_x;
   public float init_y;
   public float init_z;
   
   //-1 标识前此怪没有目标
   public int target = -1;
   public MonsterModelDB(){
	   
   }
   public MonsterModelDB(MonsterBasicData data,int level,float x,float y,float z)
   {
	   this.gdCode=data.getGdCode();
	   this.atk=PropertyUtil.getMonsterAtk(data,level);
	   this.def=PropertyUtil.getMonsterDef(data, level);
	   this.hpMax=this.hp=PropertyUtil.getMonsterHpMax(data,level);
	   this.mpMax=this.mp=data.getMpBase()+level*data.getMpGrow();
	   this.exp=PropertyUtil.getMonsterKilledExp(data,level);
	   this.x=this.init_x=x;
	   this.y=this.init_y=y;
	   this.z=this.init_z=z;
   }
   
   
}
